package com.ys.data.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("ys_user")
@ApiModel("用户持久类")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
   
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("姓名")
    @TableField(value="`name`")
    private String name;

    @ApiModelProperty("用户code")
    private String userCd;

    @ApiModelProperty("登录名")
    private String loginName;

    @ApiModelProperty("密码")
    @TableField(value="`password`")
    private String password;

    @ApiModelProperty("注册时间 年月日：时分秒")
    private LocalDateTime registerDate;

    @ApiModelProperty("性别：0-男 1-女") 
    private Boolean userSex;

    @ApiModelProperty("手机号") 
    private String mobile;

    @ApiModelProperty("邮箱") 
    private String email;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("0-普通用户 1-会员用户 2-其他用户") 
    private Boolean userType;

    @ApiModelProperty("注册类型 0-手机号登录 1-微信快捷登录 2-支付宝 3-邮箱")  
    private Boolean registerType;

    @ApiModelProperty("0-未审核 1-已审核")   
    private Boolean userStatus;

    @ApiModelProperty("创建人") 
    private String created;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdDate;

    @ApiModelProperty("更新人")  
    @TableField(value="`update`")
    private String update;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateDate;

    @ApiModelProperty("头像") 
    private String picture;
}